<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    console.log(Array.from({length:10000},(node,i) => i + 1))

    // new Array().keys()获取索引的生成器对象
    console.log(Array.from(new Array(10001).keys()).slice(1))
</script>
</html>